package Day03_运算符_Scanner;

public class demo_关系运算 {
    public static void main(String[] args){
        System.out.println(6 > 5); //true
        System.out.println(3 > 5); //false

        System.out.println(3 < 5); //true
        System.out.println(6 < 5); //false

        //>=  <= ,大于或等于 ，小于或等于，只需满足一个
        System.out.println(6 >= 5); //true
        System.out.println(5 >= 5); //false
        System.out.println(3 >= 5); //false
        System.out.println(3 <= 5); //true
        System.out.println(5 <= 5); //true
        System.out.println(6 <= 5); //false

        //!= 不等于
        System.out.println(3 != 5); //true
        System.out.println(5 != 5); //false

        //== 等于
        System.out.println(5 == 5); //true
        System.out.println(3 == 5); //false

        //************************************
        int a = 10;
        int b = 20;
        System.out.println(a = b); //20
        System.out.println(a == b); //true  b赋值给a了
    }
}
